From b102df537034e6b60abf377879b0a55fe3960a78 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 2 May 2011 18:36:14 +0200 Subject: [PATCH] cellarea: Fix warning messages to display the right type The warning displayed the type of the area instead of the cell renderer's type before. --- gtk/gtkcellarea.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkcellarea.c b/gtk/gtkcellarea.c index 27ae333db3..0af3c53df5 100644 --- a/gtk/gtkcellarea.c +++ b/gtk/gtkcellarea.c @@ -2266,7 +2266,7 @@ gtk_cell_area_attribute_connect (GtkCellArea *area, g_warning ("Cannot connect attribute `%s' for cell renderer class `%s' " "since `%s' is already attributed to column %d", attribute, - g_type_name (G_TYPE_FROM_INSTANCE (area)), + G_OBJECT_TYPE_NAME (renderer), attribute, cell_attribute->column); return; } @@ -2279,7 +2279,7 @@ gtk_cell_area_attribute_connect (GtkCellArea *area, g_warning ("Cannot connect attribute `%s' for cell renderer class `%s' " "since attribute does not exist", attribute, - g_type_name (G_TYPE_FROM_INSTANCE (area))); + G_OBJECT_TYPE_NAME (renderer)); return; } -- 2.30.2